package com.geostar.constructionland.common.entity.lockInfo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author chengan
 * @description 锁信息实体
 */
@ApiModel("建设用地锁信息表")
@TableName("jsyd_lock_info")
@Data
public class JsydLockInfo {
    @ApiModelProperty("主键ID")
    @TableId(value = "lockid",type = IdType.ASSIGN_UUID)
    private String lockid;

    @ApiModelProperty("案卷ID")
    @TableField(value = "ajid")
    private String ajid;

    @ApiModelProperty("项目名称")
    @TableField(value = "xmmc")
    private String xmmc;

    @ApiModelProperty("操作人")
    @TableField(value = "czr")
    private String czr;

    @ApiModelProperty("锁定时间")
    @TableField(value = "lock_time")
    private Date lockTime;

    @ApiModelProperty("解锁时间")
    @TableField(value = "unlock_time")
    private Date unlockTime;

    @ApiModelProperty("redis值")
    @TableField(value = "redis_value")
    private String redisValue;

    @ApiModelProperty("redis过期时间")
    @TableField(value = "expire_time")
    private Integer expireTime;

    @ApiModelProperty("锁存在时间,单位：秒")
    @TableField(exist = false)
    private Integer lockExist;
}
